<template>
    <view class="list-item" @tap="goDetail(item)">
        <view class="name">
            {{ item.AName }}
        </view>
        <view class="con">
            <view class="num"> ¥{{ item.Total }} </view>
            <uni-icons class="icon-arrow-right" type="arrowright"></uni-icons>
        </view>
    </view>
</template>

<script>
export default {
    components: {},
    props: {
        item: {
            type: Object,
            default: () => {},
        },
        // 费用总计
        total: {
            type: Number,
            default: 0,
        },
    },
    data() {
        return {}
    },
    onShow() {},
    methods: {
        goDetail(item) {
            let url = "/pages_erp/manage/accountInfo?data=" + encodeURIComponent(JSON.stringify(item))
            this.easyGoTo(url)
        },
    },
}
</script>

<style lang="scss">
.list-item {
    padding: 0 24rpx 0 32rpx;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 128rpx;
    margin-bottom: 24rpx;
    background: #fbf6f7;
    border-radius: 28rpx;
    font-size: 30rpx;
    .name {
    }
    .con {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        .num {
            font-weight: bold;
            font-size: 40rpx;
        }
    }
}
</style>
